import requests
from lxml import etree

headers = {
    "Referer": "http://spiderbuf.cn/s08/",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "Host": "spiderbuf.cn",
    "Origin": "http: // spiderbuf.cn",
    "Cookie":"Hm_lvt_ab0153f5f064a819a91a3699f63f86e3=1699602345; Hm_lpvt_ab0153f5f064a819a91a3699f63f86e3=1699841833"
}

data = {
    "level": 8
}
response = requests.request(method='post',url='http://spiderbuf.cn/s08/', data=data, headers=headers)
etree = etree.HTML(response.text)
th = etree.xpath('//tr/th')
for item in th:
    print(item.text)

trs = etree.xpath('//tr')
for item in trs:
    for i in item.xpath('./td'):
        print(i.text)

